<!--
描述：主观题审核-查看组件
开发人：zyanming
开发日期：2019年9月13日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="subjectCheck" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            el-form-item(label="主观题类型" prop="subjectType" v-bind:label-width="labelWidth")
                kalix-dict-select(v-model="formModel.subjectType" appName="enrolment" dictType="主观题类型" disabled)
            el-form-item(label="年份" prop="year" v-bind:label-width="labelWidth")
                kalix-date-picker(v-model="formModel.year" type="year" readonly)
            el-form-item(label="题干" prop="stem" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.stem" type="textarea" readonly)
            el-form-item(label="答题要求" prop="answerConstraint" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.answerConstraint" type="textarea" readonly)
            el-form-item(label="试题解析" prop="analysis" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.analysis" type="textarea" readonly)
            el-form-item(label="评分标准" prop="scoreStandard" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.scoreStandard" type="textarea" readonly)
            div.s-flex
                el-form-item.s-flex_item(label="审核状态" prop="checkFlag" v-bind:label-width="labelWidth")
                    el-tag(v-if="formModel.checkFlag === '1'" type="success") 已通过
                    el-tag(v-else-if="formModel.checkFlag === '2'" type="danger") 未通过
                    el-tag(v-else) 未审核
                el-form-item.s-flex_item(label="审核员" prop="checker" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.checker" readonly)
                el-form-item.s-flex_item(label="审核时间" prop="checkDate" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.checkDate" readonly)
            el-form-item(v-if="formModel.checkFlag === '2'" label="审核未通过原因" prop="checkReason" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.checkReason" type="textarea" readonly)
</template>

<script type="text/ecmascript-6">
    import FormModel from '../../../questioninput/common/subject/model'

    export default {
        name: 'SubjectCheckView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                labelWidth: '120px'
            }
        },
        methods: {}
    }
</script>
